/* 
 *  javascribd - Java client library for the Scribd API. 
 *  Copyright (C) 2009 by Marcel Eyke, http://code.google.com/p/javascribd/ 
 *  Use is subject to license terms of LGPL. See license.txt. 
 */
package com.google.code.javascribd.connection;

import java.io.IOException;
import java.net.Proxy;

public interface ScribdConnection {
	public void setProxy(Proxy proxy);

	public void setUrl(String apiUrl);

	public Proxy getProxy();

	public String getUrl();

	public <T extends ScribdResponse> T postRequest(ScribdMethod<T> method, ScribdResponseParser interpretor)
			throws ScribdConnectionException, IOException;

	public <T extends ScribdResponse> T getRequest(ScribdMethod<T> method, ScribdResponseParser interpretor)
			throws ScribdConnectionException, IOException;
}
